﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0; padding: 0}
    .titname{padding: 10px 0; font-weight: bold; text-align: center; color: white; background: #ffd326}
    .downLoadapp{ text-align: center}
    .downLoadapp a{ margin: 15px 0; display: inline-block; padding: 12px; width: 60%; border-radius:5px; background: #ffa536;color: white; text-align: center; font-size: 14px;
    ; text-decoration: none}
    .downLoadapp a:last-child{ background: #00cdff;}
    .applogo{text-align: center; margin: 40px 0;}
    .homeinfo{font-size: 12px; color: #cdcbc0; text-align: center;position: fixed;bottom: 0; width: 100%; }
    .homeinfo p{padding:2px 0}
	#weixin-tip p img {
	width: 20%;
	width: 300px;
	margin-left: 7%;
	margin-top: 20px;
}
    </style>
</head>
<body>
    <div class="content">
        <div class="appdown">
            <div class="titname">黑龙江省建筑起重机械安全监督管理系统APP</div>
            <div class="applogo">
                <img src="logo.png" alt="" width="50%">
            </div>
            <div class="downLoadapp">
                <a href="http://111.42.127.152:12003/app/appDownload/app.apk">安卓端下载</a>
                <!--<a href="#">ios端下载</a>-->
            </div>

            <!--<div class="homeinfo">
                <p>士大夫士大夫士大夫</p>
                <p>手动阀手动阀</p>
            </div>-->
        </div>
    </div>
	
	<script>
	 
		function is_weixin() {
		    var ua = navigator.userAgent.toLowerCase();
		    if (ua.match(/MicroMessenger/i) == "micromessenger" ) {
		        return true;
		    } else {
		        return false;
		    }
		}
		var isWeixin = is_weixin();
		var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
		function loadHtml(){
			var div = document.createElement('div');
			div.id = 'weixin-tip';
		
			div.innerHTML = '<p><img src="http://www.longxuetong.com:80/static/download/images/live_weixin.png" alt="微信打开"/></p>';

			document.body.appendChild(div);
		}

		function loadStyleText(cssText) {
			var style = document.createElement('style');
			style.rel = 'stylesheet';
			style.type = 'text/css';
			try {
				style.appendChild(document.createTextNode(cssText));
			} catch (e) {
				style.styleSheet.cssText = cssText; //ie9以下
			}
			var head = document.getElementsByTagName("head")[0]; //head标签之间加上style样式
			head.appendChild(style);
		}
		var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{  }";
		if (isWeixin) {
			
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
	document.removeEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	WeixinJSBridge.call('showOptionMenu');
}, false);
			loadHtml();
			loadStyleText(cssText);
		}
	
	</script>
</body>
</html>